import axios from 'axios'

const Axios = {
    getTechnical(){
        return axios.get('https://service.test.nttcc.com.cn/api/v1/technical/list')
    },
    getServiceType(){
        return axios.get('https://service.test.nttcc.com.cn/admin/api/v1/service_type/ladderlist')
    },
    getDetailed(object){
        let { pageNum,keywords,serviceTypeId,serviceTypeId2,technicalId,province,dataOrigin } = object
        return axios.get(`https://service.test.nttcc.com.cn/api/v1/service/list?pageNum=${pageNum>0?pageNum:'1'}&pageSize=10&keywords=${keywords}&serviceTypeId=${serviceTypeId}&serviceTypeId2=${serviceTypeId2}&technicalId=${technicalId}&province=${province}&dataOrigin=${dataOrigin}&logicStatus=1`)
    },
    // getAll(){
    //     let { pageNum,serviceTypeId,serviceTypeId2,technicalId,province,dataOrigin } = object
    //     return axios.get(`https://service.test.nttcc.com.cn/api/v1/service/list?pageNum=1&pageSize=2390&keywords=&serviceTypeId=&serviceTypeId2=&technicalId=&province=&dataOrigin=&logicStatus=1`)
    // }
}

export default Axios